﻿using System.ComponentModel.DataAnnotations;
using Abp.Organizations;

namespace ARchGL.Platform.Organizations.Dto
{
    public class CreateOrganizationUnitInput : OrganizationUnitInputBase
    {
        public long? ParentId { get; set; }
    }

    public class OrganizationUnitInputBase
    {
        [Required]
        [StringLength(OrganizationUnit.MaxDisplayNameLength)]
        public string DisplayName { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 级别
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(500)]
        public virtual string Description { get; set; }
    }
}